<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateGoldRoundsTable extends Migration
{
    public function up()
    {
        Schema::create('gold_rounds', function (Blueprint $table) {
            $table->id();
	        $table->string('title', 30)->nullable()->unique();
	        $table->time('opened_at')->nullable();
	        $table->time('started_at')->nullable();
	        $table->time('ended_at')->nullable();
	        $table->unsignedInteger('order')->default(0)->index();
	        $table->boolean('is_close')->default(false);
	        $table->boolean('is_ending')->default(false);
        });
    }

    public function down()
    {
        Schema::dropIfExists('gold_rounds');
    }
}
